﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master" AutoEventWireup="true" CodeBehind="ErrorList.aspx.cs" Inherits="Frame.Web.Admin.Log.ErrorList" %>
<%@ Register src="../../Common/Controls/Selecter.ascx" tagname="Selecter" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <div id="toolbar">
        <ul>
            <li style="width:90px;"><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/DELETE.gif);">
                &nbsp;</b><asp:Literal ID="Literal4" runat="server" Text="删除所选"></asp:Literal></span></a></li>
            <li style="width:90px;"><a id="lnkClear" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/DELETE.gif);">
                &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="全部清除"></asp:Literal></span></a></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
            <span style="font-weight: bold">错误日志</span>
        </div>
        <div class="right">
            日期：<asp:TextBox ID="txtStartTime" runat="server" Width="80px" CssClass="txt"></asp:TextBox>—<asp:TextBox ID="txtEndTime" CssClass="txt"
                runat="server" Width="80px"></asp:TextBox>
                <asp:Button ID="btnQuery" runat="server" 
                Text="查询" onclick="btnQuery_Click" />
            <asp:Button
                    ID="btnDelete2" runat="server" Text="删除" onclick="btnDelete2_Click" />
            <asp:DropDownList ID="drpPager" runat="server" OnSelectedIndexChanged="drpPager_SelectedIndexChanged">
            </asp:DropDownList>
        </div>
    </div>
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>               
                <th>
                    登录名
                </th>
                <th>                    
                    错误描述
                </th>
                <th>
                    错误堆栈
                </th>
                <th>
                    标记
                </th>
                <th>
                    时间
                </th>
                            
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>                      
                        <td><%#Eval("LoginName") %>&nbsp;</td>
                        <td><%#Eval("ErrorMessage") %></td>
                        <td><div style=" line-height:20px;"> <%#Eval("StackTrace")%></div></td>
                        <td>
                            <%#Eval("Tag") %>&nbsp;
                        </td>
                        <td><%#Eval("InputTime") %></td>
                        
                    </tr>
                </ItemTemplate>
                 <EmptyDataTemplate>
                    <tr>
                        <td colspan="7" class="empty">没有错误日志</td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>       
    </div>
      <div id="foot">
        <uc1:selecter id="Selecter1" runat="server" />
        <asp:Literal ID="litPager" runat="server"></asp:Literal></div>
    <div style="clear: both;" />
    <div id="toolbar_bottom">
        <asp:Button ID="btnDelete" runat="server" Text="删除所选" OnClick="btnDelete_Click" CausesValidation="False" style="letter-spacing:normal;" />
        <asp:Button ID="btnClear" runat="server" Text="全部清除" CausesValidation="False" 
            onclick="btnClear_Click"  style="letter-spacing:normal;"  />
    </div>
</asp:Content>
